package com.hrserviceserve.controller;

import com.hrserviceserve.entity.Result;
import com.hrserviceserve.service.TransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TransferController {
    @Autowired
    TransferService transferService;
    @GetMapping("/transfer")
    public Result findAll(@RequestParam("page") Integer page, @RequestParam("limit") Integer limit,
                          @RequestParam(value = "id",required = false) Integer id){
        return transferService.findAll(page,limit,id);
    }
}
